package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.Flows;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface FlowsMapper {

    List<Flows> queryList(Flows flows);

    List<LinkedHashMap<String, Object>> queryFans(Integer flowUserId);

    List<LinkedHashMap<String, Object>> queryFollows(Integer userId);

    int add(Flows flows);

    int deleteById(Integer id);

    int cancelFollow(@Param("userId") Integer userId, @Param("flowUserId") Integer flowUserId);
}
